﻿using System.Web.Security;

namespace UtilityComponent.Helpers
{
    public class SecurityHelper
    {
        /// <summary>
        /// Md5 encrypt.
        /// </summary>
        /// <param name="strText">string.</param>
        /// <returns></returns>
        public string MD5Encrypt(string strText)
        {
            return FormsAuthentication.HashPasswordForStoringInConfigFile(strText, "MD5").ToLower();
        }
    }
}
